<Window x:Class="SPAuthTool2007.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="FBA Configurator" Height="392" Width="613" Loaded="Window_Loaded" xmlns:Microsoft_SharePoint_Administration="clr-namespace:Microsoft.SharePoint.Administration;assembly=Microsoft.SharePoint">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="23" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="1" x:Name="stackPanel1" Orientation="Horizontal">
            <Button Height="23" x:Name="previousButton" Width="75" IsEnabled="False" Click="previousButton_Click" Content="Previous"/>
            <Button Height="23" x:Name="nextButton" Width="75" Margin="4,0,0,0" Click="nextButton_Click" Content="Next"/>
            <Button Height="23" x:Name="finishButton" Width="75" Margin="4,0,0,0" IsEnabled="False" Click="finishButton_Click" Content="Finish"/>
        </StackPanel>
        <TabControl x:Name="tabControl1" SelectionChanged="tabControl1_SelectionChanged">
            <TabItem Header="FBA DB" x:Name="tabItem1">
                <Canvas>
                    <Label Canvas.Left="6" Canvas.Top="6" Height="23" Width="104" Content="Server Name:"/>
                    <TextBox Canvas.Left="116" Canvas.Top="8" Height="23" x:Name="serverNameTextBox" Width="416">laptop2</TextBox>
                    <Label Canvas.Left="6" Canvas.Top="35" Height="23" Width="104" Content="Database Name:"/>
                    <TextBox Canvas.Left="116" Canvas.Top="37" Height="23" x:Name="databaseNameTextBox" Width="416">aspnetdb_legal</TextBox>
                    <Label Canvas.Left="6" Canvas.Top="106" Height="23" Width="104" Content="Connection Name:"/>
                    <TextBox Canvas.Left="116" Canvas.Top="108" Height="23" x:Name="connectionNameTextBox" Width="416" Text="fbaConnectionString"/>
                    <Label Canvas.Left="6" Canvas.Top="135" Height="23" Width="104" Content="Application Name:"/>
                    <TextBox Canvas.Left="116" Canvas.Top="137" Height="23" x:Name="applicationNameTextBox" Width="416" Text="/"/>
                    <Button Canvas.Left="116" Canvas.Top="66" Height="23" x:Name="testButton" Width="75" Click="testButton_Click" Content="Test"/>
                    <Button Canvas.Left="197" Canvas.Top="66" Height="23" Name="createButton" Width="75" Click="createButton_Click">Create</Button>
                </Canvas>
            </TabItem>
            <TabItem Header="Membership" x:Name="tabItem2">
                <Canvas>
                    <Label Canvas.Left="10" Canvas.Top="10" Height="23" Width="96" Content="Provider Name:"/>
                    <TextBox Canvas.Left="192" Canvas.Top="10" Height="23" x:Name="membershipProviderNameTextBox" Width="300" Text="sqlMembershipProvider"/>
                    <Rectangle Canvas.Left="14" Canvas.Top="229" Height="58" Stroke="Black" Width="556" />
                    <Label Canvas.Left="14" Canvas.Top="200" Height="23" Width="96" Content="Options:"/>
                    <CheckBox Canvas.Left="25" Canvas.Top="238" Height="16" x:Name="enablePasswordRetrievalCheckBox" Width="154" Content="Enable Password Retrieval"/>
                    <CheckBox Canvas.Left="25" Canvas.Top="260" Height="16" x:Name="enablePasswordResetCheckBox" Width="138" IsChecked="True" Content="Enable Password Reset"/>
                    <CheckBox Canvas.Left="234" Canvas.Top="238" Height="16" x:Name="requireQuestionAndAnswerCheckBox" Width="174" Content="Require Question and Answer"/>
                    <CheckBox Canvas.Left="234" Canvas.Top="260" Height="16" x:Name="requireUniqueEmailCheckBox" Width="131" IsChecked="True" Content="Require Unique Email"/>
                    <Label Canvas.Left="10" Canvas.Top="39" Height="23" Width="139" Content="Max Password Attempts:"/>
                    <TextBox Canvas.Left="192" Canvas.Top="39" Height="23" x:Name="maxPasswordAttemptsTextBox" Width="300" Text="5"/>
                    <Label Canvas.Left="10" Canvas.Top="68" Height="23" Width="139" Content="Min Password Length:"/>
                    <Label Canvas.Left="10" Canvas.Top="97" Height="23" Content="Min Alphanumeric Chars:"/>
                    <Label Canvas.Left="10" Canvas.Top="126" Height="23" Content="Password Attempt Window:"/>
                    <Label Canvas.Left="10" Canvas.Top="155" Height="23" Content="Password Strength RegEx:"/>
                    <TextBox Canvas.Left="192" Canvas.Top="68" Height="23" x:Name="minPasswordLengthTextBox" Width="300" Text="1"/>
                    <TextBox Canvas.Left="192" Canvas.Top="97" Height="23" x:Name="minAlphaNumCharsTextBox" Width="300" Text="0"/>
                    <TextBox Canvas.Left="192" Canvas.Top="126" Height="23" x:Name="passwordAttemptWindowTextBox" Width="300" Text="10"/>
                    <TextBox Canvas.Left="192" Canvas.Top="155" Height="23" x:Name="passwordStrengthRegExTextBox" Width="300" />
                </Canvas>
            </TabItem>
            <TabItem Header="Role" x:Name="tabItem3">
                <Canvas>
                    <Label Canvas.Left="10" Canvas.Top="10" Height="23" Width="96" Content="Provider Name:"/>
                    <TextBox Canvas.Left="112" Canvas.Top="10" Height="23" x:Name="roleProviderNameTextBox" Width="300" Text="sqlRoleProvider"/>
                </Canvas>
            </TabItem>
            <TabItem Header="FBA Admin User" x:Name="tabItem4">
                <Canvas>
                    <Label Height="28" HorizontalAlignment="Left" Margin="17,18,0,0" x:Name="label1" VerticalAlignment="Top" Width="120" Content="User Name:"/>
                    <Label Height="28" HorizontalAlignment="Left" Margin="17,52,0,0" x:Name="label2" VerticalAlignment="Top" Width="120" Content="Password:"/>
                    <TextBox Height="23" Margin="168,0,139,118" x:Name="userNameTextBox" VerticalAlignment="Bottom" Width="300" Canvas.Left="-71" Canvas.Top="23" Text="fbaadmin"/>
                    <PasswordBox Canvas.Left="97" Canvas.Top="52" Height="23" x:Name="passwordBox1" Width="300" Password="pass@word1" />
                    <PasswordBox Canvas.Left="97" Canvas.Top="81" Height="23" x:Name="passwordBox2" Width="300" Password="pass@word1" />
                    <Label Canvas.Left="17" Canvas.Top="110" Height="28" Name="label6" Width="120">Email:</Label>
                    <TextBox Canvas.Left="97" Canvas.Top="115" Height="23" Name="emailTextBox" Width="300">fbaadmin@localhost.com</TextBox>
                </Canvas>
            </TabItem>
            <TabItem Header="SharePoint" x:Name="tabItem5">
                <Canvas>
                    <Label Canvas.Left="6" Canvas.Top="6" Height="28" x:Name="label3" Width="120" Content="Web Application:"/>
                    <Label Canvas.Left="6" Canvas.Top="69" Height="28" x:Name="label4" Width="120" Content="Zone for FBA:"/>
                    <ComboBox Canvas.Left="141" Canvas.Top="11" Height="23" x:Name="webApplicationComboBox" Width="300" SelectionChanged="webApplicationComboBox_SelectionChanged" DisplayMemberPath="Name" />
                    <ComboBox Canvas.Left="141" Canvas.Top="69" Height="23" x:Name="zoneComboBox" Width="300" />
                    <Label Canvas.Left="6" Canvas.Top="103" Height="28" x:Name="label5" Width="120" Content="Enable Anonymous?:"/>
                    <CheckBox Canvas.Left="141" Canvas.Top="108" Height="16" x:Name="anonymousCheckBox" Width="120"/>
                    <Button Canvas.Left="141" Canvas.Top="40" Height="23" x:Name="refreshWebApplicationsButton" Width="75" Click="refreshWebApplicationsButton_Click" Content="Refresh"/>
                    <Button Canvas.Left="222" Canvas.Top="40" Height="23" Name="extendButton" Width="75" Click="extendButton_Click">Extend</Button>
                </Canvas>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
